#!/usr/bin/env python
# -*- coding: utf-8 -*-

# forever mako

import os
dirs = os.path.join( os.path.dirname(__file__),'../..')  #上上级文件目录名
if dirs not in os.sys.path:
    os.sys.path.append(os.path.join( os.path.dirname(__file__), '../..'))   



import ExecCommand.Public.CommandManager as CmdManager
import MainLoop.Modual as MLoop

import Public.StockPrice as SP

def StartModual():
    print("Stock Price Modual Start")
    CmdManager.CommandManager.RegisterCommand("StockPrice",SP.StockPrice.ExecCommand)
    MLoop.MainLoop.RegisterTimeEvent(1,SP.StockPrice.Run)
    
    
def StopModual():
    print("Stock Price Modual Stop")
    SP.StockPrice.Save()
    

StartModual()